/*******************************************************************************
 * FilePath    : /Software/Examples_Ble_MS1642/ble_app_peripheral_uart_simple/Src/User/User_Led.c
 * Version     : 1.0
 * Brief       :
 * Author      : AndrewHu
 * Company     : Shanghai MacroGiga Electronics CO.,Ltd
 * Email       : Hubinbo@macrogiga.com
 * Date        : 2020-04-03 15:15:31
 * LastEditors : AndrewHu
 * LastEditTime: 2023-02-01 15:56:16
 * Description :
 ******************************************************************************/

/* Includes ------------------------------------------------------------------*/
#include <Includes.h>
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
#define LED_RISING_FALLING_UNIT 0x04
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function ----------------------------------------------------------*/
/* extern --------------------------------------------------------------------*/

/*******************************************************************************
 * Function    : LED_SetStatus
 * Brief       : LED灯的亮灭状态控制
 * Parameter   :
 * Returns     :
 * Date        : 2020-04-04 15:18:38
 * Description :
 ******************************************************************************/
void LED_SetStatus(u8 stat)
{
    if (stat)
        HAL_GPIO_WritePin(LED_GPIO, LED_PIN, GPIO_PIN_SET);
    else
        HAL_GPIO_WritePin(LED_GPIO, LED_PIN, GPIO_PIN_RESET);
}
/*******************************************************************************
 * Function    : LED_ChangeStatus
 * Brief       : LED灯的亮灭状态改变
 * Parameter   :
 * Returns     :
 * Date        : 2020-04-04 15:18:38
 * Description :
 ******************************************************************************/
void LED_ChangeStatus(void)
{
    HAL_GPIO_TogglePin(LED_GPIO, LED_PIN);
}
